package cn.tedu.pojo.dto.order;

import io.swagger.annotations.ApiModel;

import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;


@ApiModel(value = "新增订单DTO")
@Data
public class OrderTableDTO implements Serializable {
    private static final long serialVersionUID = 1L;
    private static final String VALIDATE_MESSAGE_PREFIX = "新增购物车失败，";

    private Long id;
    /**
     * 用户id
     */


    private Long userId;
    /**
     * 下单地址
     */

    private String orderId;



    //@NotNull(message = VALIDATE_MESSAGE_PREFIX+"请提供下单地址")
    private String orderAddr;

    private  Long commdityId;



    /**
     * 商品数量
     */

    //@NotNull(message = VALIDATE_MESSAGE_PREFIX+"请用户提交订单数量")
    private Integer  commodityNumber;

    private Integer orderPrice;

    private Integer isDelete;
    private LocalDateTime orderCreatetime;
    private LocalDateTime gmtCreate;
    private LocalDateTime gmtModifity;
}
